
package at.fhj.itm.metadata;

import java.util.List;

/**
 *
 * @author Seuchter
 */
public interface ForeignKeyConstraint extends Constraint{
    public final String CONSTRAINT_ACTION_NONE = "none";
    public final String CONSTRAINT_ACTION_RESTRICT = "restrict";
    public final String CONSTRAINT_ACTION_CASCADE = "cascade";
    public final String CONSTRAINT_ACTION_SET_NULL = "setnull";
    public final String CONSTRAINT_ACTION_SET_DEFAULT = "setdefault";

    public String getUpdateAction();
    public String getDeleteAction();
    public boolean isDefereable();
    public boolean isInitialyDefered();

    Table getReferencingTable();
   
    List<? extends Column> getReferencingColumns();
}
